fixed wrong credential parsing