Remove the wrong references.