fix index error in reading BHs IDs