Bugfix in Application::loadClass() method