Fixed encoder building.