log lua error fixes