Fixed a weird bug where the GPIO pins were flooded