fix bubg detached instance, bug end game