fixed endless loop in groupnode.cpp
cleanup of groupnode.cpp