Fixing pin error