Bug fix: inital value of slider if the end points have "snapToGrid".