fix content-type bug