fixed resizing after refresh