Loopmode defined twice

The first definition has been removed, as it is redondant with the second definition, more precise.
I cannot find the mistake in the typescript file :(