Fix typo in variable substitution