fix compression; wrong comparison operator