GEOS-6245: little fix to size calculation