Fixed single-application instance issue