some fixes for lua port