Revert "fix error on changing dataset after first init"

This reverts commit c693521490074756636f4198c57b4856dd6c2052.