minimization.rb bug fixed