Fixed settings refresh bug