fixed a bug after changing the GPIO