Patched dirty pagination directive