Agreed - I didn't like it either, which is why I already fixed it :-)
https://github.com/gallery/gallery3/commit/394772230d5bdf8091090ade486372ed9386ec96

I decided that the problem wasn't "created" ties - it was that there was no tie-breaker...