Fixed byte length error in compress