Bugfixing invalid constant usage in Application class