Fix not saving global rules & GUI issues

Fix #35