bug fix for flush notification