fix case when header needs to be resized beyond first file