Bug fixed when changing values when already value