check to make sure intervals have positive width