Key loss bug fixed.