bug fix for null result limit