Fixed bug in default creds searching function