Remove bad keys