Fixed for the tracks function!

Now it fully works :D