Fixed bug on delete cookie method