fix issue with index being added to and old value not deleting