bugfix of clean_es.rb