Possible fix to resizing issue