Fix an editing bug when changing the length of an audio item