fixed bug that causes number format error in angular 1.3.1

When moving the slider, I'd get a number format error as it updated the scope. This seems to fix it.