fixed delete cookie method