Incomplete output when hPutStr is lifted