Fixed in c546cc8. Using degasus's suggestion and added a small comment on the normalization.