fixed the possibility to have a variable named 'matches' (closes #1227)