fix bugs

Bugfix:Missing of the variable used curly syntax. (thanks for XNR
https://github.com/chinurho)