fixed bug introduced by gpio switch