fix bhdetail raw input and use pos vector