Fixed reduce dim to create a copy of the object