fix osx timer