fix on "profile" for credential.js