Fixed windows compile errior with ui.cc