Fixed a bug with matching skipping over tracks.

I've narrowed down the bug — deleting items from a list.
Also change order of try\except a little.