Issue #IKTRE-84 by tuj: Fixed scheduling bug when to and from set to 0