fix error for getting value of variable whose name contains space