Fix up malformed data