Update AppInstance.php