Bug fix to hashkey updating.