Correction for bad locations