Fixed computation of \hat{b}