Encoder gives values only in one way