Fix content type detection