lua functions
small fix
another fix...
Merge pull request #632 from ReyAleman/14032014

Lua functions.