bugfix in app.php