Fixed second bug with inputStructure in ENCODER. Line 90