Fix two bugs in UI