Fixed GPIO block issue that accessed out of bounds Array()