fixing some issues with plugins and pagination plugin