fixed warnings in Gui.as