fixed rails_setup bug