Fix the bug where the startup doesn't work on Mountain Lion