fix pac dir error issue