Try sleeping for a bit before checking the index file.