Unbiased least-squares modification of Stokes’ formula