Fixed User key generation issue.