Fix minor bugs when using 0 as active or rest times
