fix corner resizing