remove bad refer