Minor fix for UI bug