Fix for setting latest data when invalid format was found in database.