fix active requests query error