Bug fix in gpio pin