Fixed issue with single gpio not working