bug fixed in app.rb