matches bug fix