Fixed the stale hash problem.