Fixed discover credentials issue