Bug fix regarding incorrect order of app.gets.