Fix deletion of error cookies