while detecting settings changes, fixed array comparison