DEV: Fix bug computing integral 2D