Fix setting multiple cookies bug
Do not set cookie when it is duplicated