update last key fix