fix: incorrect scope in approximateSize func

See issue #59