* Bug: use index_filename before assignment