Added check which prevents useless settings updates