fix bug causing type one matches to be counted as type two in addition