timer fix for osx