Fixed bug where settings weren't saved to disk.