Bugfix on compress mode