BPC-266: fix in Gui.java