Fix credential initialization