Fixed small bug with lua script processor