fixed encoder.s