Fix for picking up error page title

Fixes #4