remove bad key