fixing implementation of min/max.
we should always have 2 machines in the pool, unless we reached max machines.