Fixed small bug in ecosoptimset.m