fixed bug where resized datasets lose their attributes