Fix bug in check controlmode while sending position command from slider