Add check on the magic bytes.

Unsure how I missed this one.