use app.debug
fix redirect issue when page not found