fixed getNodesForWidget