Fixed bug where settings randomly changed