some fixups when adding and deleting tracks