make sure the content type is correct, fixes #13