Fix bug in matches controller