fix content type checking