Workaround to compress file when setting are set to false