Fixed operation on Mac OS X