It is difficult to diagnose this problem without context but it sounds like you may be trying to use the shaft with an SRX Mag Encoder (am-3445) without the SRX Mag Encoder Hardware Kit (am-3565) - this kit includes a spacer which will locate the encoder at the correct distance from the magnet. Please refer to the Hardware Kit page for detailed installation instructions.