Fixed resizing issue on the resume