hi there wondering if anyone can help please

i have a 1997 megane 1.6 ert 8v theres two thing wrong but they could be connected not sure

1) when changing down gears as soon as i take my foot of the throttle the revs will drop and it would be 50-50 whether it would stall or not

2)after about 5 mins from starting the car the revs will stay at about 1800 rpm as if you had your foot on the accelerator

if anyone could help would be much appreciated

i have changed the idle speed valve but still no joy