LM317 CC/CV circuit not working

At 1000 ohms it's still in constant voltage mode... Go take your wisdom elsewhere please. And I get the same results with a battery instead of a resistor.