Fixing syntax error in ui_base.py