Fixed a bug that caused the wire inputs to read wrong.