fix file count on tables