fixed osx 10.9 bug