Fix code to ignore incorrect data format.