Fix change setting value type

When changing settings from string to array, it does not find the right row to update.