[ag/ka] fixed first visit cookie bug