Fix the bug of Empty Dataset