don't set duration if 0