issue when the result is null after filtering