Bug fix: fix epsilon before checking for integral