Fixed multiple instance bug