fix missing keys script