bugfix: handling undefined labels from gAPI