fix pin error