Fix nested alias execution order.