Fix memory related crash. sizeof() returns 24 and the actual number of settings is 2.