Re-record not working consistently on audio tracks

Sometimes when I press the record button the recording stops and starts playing from the start of the recording.
But it does not remove or restart the recording. This works fine on midi or instrument tracks