fix some exceptions when content is None