Fix issue with wrong ouput for datasets id