Write R.ideal( instead of Ideal( which tries to guess the ring that you want (and gets it wrong here).