patch to compatibility with OSX 10.9