fixing gp referral bug

fixing gp referral bug