Fixed app.rb bug