Fix incorrect header clipping