4. fix bug of updating intercept

1/M not M