Fix crash when selecting a measurand