fix checking content format