Fixed creating credentials with specified id.