Added GUI config and fixed a possible bug