# [Fixed 2.6 Beta] Insert New Track Next To Mst Does Weird Stuff

Hi there,

when one creates a new track (with scripting) next to the Mst track, then this one seems to do weird stuff (I think it overwrites the Mst).

This adds a send track. Looks OK here?

``````
local function master_track_index()
for index,track in ripairs(renoise.song().tracks) do
if (track.type == renoise.Track.TRACK_TYPE_MASTER) then
return index
end
end
end

renoise.song():insert_track_at(master_track_index())

``````

No, what I mean is when you start a new project for instance, there are 8 “normal” tracks, then the Mst and then one or two Sends (cannot remember right now). When you then add a track AFTER “normal” track number 8, then things seem to go wrong.