fixed bug in stop method in PositionManager