fixes resiing issue