fixed object fetch bug (property of non-object error on app.php)