bug fix for end pipe event when no results found