Bug with resizing fixed