Fixing rotary encoder