Fix single-instance failed on window