fix clipboard issue in mac os x