Fix:Remove some needless lua binding functions and resolve a bug