Fixed the size of required files calculation.