fix for pagination url with empty params