fixed minCV issues with variance calculation