Quick lua error handling fix