fix multi-instance