Fix bug with scm header parsing