Fixed chunk size check for files