Fixed bug related to the inputStructure in ENCODER