Fix unbound variable issue in common code

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>