Fixed start/end setting bug.