fixed pagination bug when no pagination exists, yet, for a new pagination being added.