Fixed bad variable substitution
Merge pull request #4 from aldavud/fix_variable_substition

Fixed bad variable substitution