fix a warning in UI