I finally figured out the reason. It is all my own fault. I used a Manfrotto 410 as wedge which has a large quick release plate. When S50 turned, the plate hit one of its rubber legs affecting the motion of S50, causing it to reset. After I removed the rubber legs (useless basically), the problem vanished.

