fixed incremental files logic problem