ENH: fixing resize problem on mac