Add make jar for GUI and fix a stupid bug