Fix lua error on login (CA)