* ui lua integration: fixed segfault problem