solved a resizing issue