referal link not working correcly