Fixed bug where settings were only saved in last item