fix rooting bug