You should check here if the value was really changed like:
if (currentValue != value)
{
   do stuff
}