fix error on changing dataset after first init