fix redstone input direction going in the wrong direction