Fixed validity checking of positions in stageControl