resizing bugfix