Fix ArrayListOutOfBoundsException error with Tag deletion