Fixed a problem with size of a main repository in union operations