Fixed variance bug