Back to previous version because a problem while checking file size

Back to previous version because a problem while checking file size introduced