Fixed empty settings being saved