fix outerXxxx BUG