interval bug fixed