Doc last key fix