Fixed bugs on UI.