fixed ifbs count check