fix content type resolving