Fixed 2d resize glitch