qBugfix invalid access to local variable $application