Reformat
Fix length calculation of heads