fixed handling of "invert trip" check box