Punch & roll not working for me

Am using 3.6.4 on Win 10. According to the manual, if I press and set the recording bar where I want it, then press SHIFT-R, I can rerecord a line over the present one. But what’s happening is the new line appears on a different track, and the old one is still there, resulting in double audio. HELP! Thanks.