macosx 10.6 fix