Fixed  snapshot size calculation code.