fix Issue #214 (multiple instances on mac)