Structure wasn't passed properly for removing of file in the index