So this was a really wasted post. The reason it was not changing is because I had some logic wrong (typo), In a really fast copy paste action I was asigning the startValue equal to the endValue. Sorry for that.