Fixed a bug in the reservoir sizing