fixed return href cookie bugs