Fix scope issues with text and range questions