fix resizing