WSOTWO-87: Fixed bug with changing amount of branches