Fixed a bug when removing listeners; it was using the wrong index into the listener array, so listeners were not being removed, which was inhibiting garbage collection.