Fix for cocoa.