Fix bson header detection.