Bug fix: integral start,end interval