fixed some resizing oddities