fix compact again in check.rb