fixed bug in app.rb