fix bridge indexing script