Fixed removeNode bug

Turns out decrementing just a straight an array isn't the same as decrementing an integer.