Fix buggy settings save