incorrect workspace assigned for collapsed nodes

fixes #461