fixed exception in UserInterface