bugfixes to 3d dataset (not complete)