Set operators order correctly and fix a bug with non-HEAD versions generation
Add a new TODO