Fix content type check