some fixes signed document referral