fix interval set/get (tests pass now!)