Fix the bug about duplicating a space

Duplicate the widgets in a space when the space is duplicated.