fix link init and cookie get