second fix for unregisterKey