fixed more resizing bugs