Fixes bugs with stdin and stdout on the compress method