Minor osx bug fix