fix bug not showing pagination without navigation