*added additional check to protect against null groupcanvas pointers