fix bug; OSX