Fix link generation on bill pages as well.
Fix active flag indexing on documents.