Fixing Reference in glue.c and widget.c