fix bug of occasionally missing mate-in-1