Live recording over an entire song

Is there some way to live record over an entire song? For instance if I have section A and section B in sequence each play different patterns in song play mode, when I record it just overdubs on the first pattern even though the display changes to the second pattern! Had anyone else experienced this and is there a workaround?