Fix error in generating toolchain.