tiny fix in mate finding