Tempfix for encoder direction