Fix basic bugs app.php