fix bug when process is killed from cache