UserInterface.java: Fix code inconsistency