Readded the commented lines in GuiHandler, fixed the error