Fix Eq. 8.77 and 8.78

This closed issue #17.