Fixed some syntax errors

I'm such a C++ coder, lua syntax confuses me!