fix #2083 and redstoneInputSide bug