Modes added, mode index is not incrementing