Fixed bug in UI