Fixes unclosed span in pagination widget