Fixed operation for Mac OS X.