fix key file remove