Fix to DataSet loading crash

Now handles resizing of the memory segment without crashing