Fixed single-application instance issue

I don't think it should be here?