fixed exception for registering keys
next version