fixed maximize problem on mac