Adding support for corrupted cookies