Fix bug with header