fixed potential bug with tasks that have units of time in them