use history empty when new interval appears, this resolves #14