added case in ``nthroot_mod``