fixed fireCount for 0 based segment counting