Fix resizing of statfiles.