fixed resizing issue