Fixed bug with resetting when index is already empty