Fix errors with excerpt

Fixes #222.