fix dataset isOpen bug