Fix content type retrieving