fix mulit-instance toggle issue