Fixed single-application instance issue

Oh, wait, no I didn't. I fixed the same problem in a separate file.