Fixed resizing issue