bugfix in variable name generation for variables resulting from conditionals