fix gpio inverting