fix multiple inner bug