setPosition() function corrected
positionBeforeSwitch use position channel and not the false getPosition function
changings on setPosition() function