fix for api_general related to pagination