Fixed global index problem in crawler class