fixed resizing a bit