Bug fixed when a pagination is not specified