fixed a bug with uifunctions not working