fixed bug; same encoder added twice