Fixed severe tracking bug.

Didn't recognize inverted intervalls correctly.