fixed scatter file count bug