Some fixes for elua