Fix so filing index is always updated