added null ref fix for when glimpse is disabled