Flushes only entries which belongs to the site and fixes missing output due to wrong check