Fix copy paste error
Fix bug on OS X