Properly close pagination tag

Fixes #14