[GPIO config]: fixed some bugs