Fix typo in variance functoin