fixed update matches bug