handle some data errors