fixed various resizing issues