fix credential path