App.php load function fix