Fixed minor code errors in match history mapping