fixed initial resizing