Fixed bug in cell detect not detecting cells with N_id_2!=0