fixed lua 5.2 env compatability issue

fixed lua 5.2 env compatability issue