Remove one useless if in N_det