fixed antialias bug on resize