Fixed snap to value bug