fixed missing : global $app;