repair to sites.rb