bug fix for null result limit (again)