Fix for RemoveFileindex