Fixed bug that was causing only the last cookie to be marked for deletion to actually get deleted