[BUGFIX] Fix TypeError in workspace module