eig count bug fixed