fixed bug in  ``_sqrt_mod1``