Fix bug in content element's serilization.