fix join match script