Fixes and closes #170 issue when creating user public keys.