Remove non-valid data