fixed problem with multiple arithmetics #160 maxbe multicut problem as
well