interval bug fix