Fixed invalid reads and accepted compressions