fix bug when identifying genes