fixed interval bug