fixed bugs in lua