Fixed GPIO issues