Unwanted silence added at end of exported WAV file

When I import a clip created in Ableton Live and work on it, Audacity always adds approximately 0.4s silence to the end of the clip when I export it in WAV 32 bit float. This means that the exported clip is unusable for looping. How do I stop Audacity adding this silence?

I am using Audacity 2.1.3 on Windows 10.

I don’t have Audacity 2.1.3 to test, but the current Audacity 2.4.2 exports exactly the correct length when exporting as WAV 32 bit float.