fix volatility calculation