Error fixed in Wave Encoder