Fix compile error triggered by UIHelper.cpp