fix lua sandbox bug