fix typo bug

splice instead of slice typo that results in the cache not removing items