Fixed a bug with subsetconstruction.