fixing one reference to check_match