Fixed saving of settings into Flash memory.