Fix DigitalInput port issues