BUGFIX: in jacobi symbol