fixed an issue on pagination on home page after login