fixed bug with Sharpe