What happens if you add inputs 1, 2, 3, then remove 1? Now trying to remove 3, you will erroneously throw this error.