Made design question_type to variable_type more robust