Fix change number of instances.