Fixed valid/hdr/tail information bits that got messed up in the last commit