fixed behaviour of view1d when clearing X dataset