fixed bug in UI showing

fixed #44