Fixed resizing error.