"fixed major bug in encoder"