Corrected a bug : the instance forms were not deleted when changing from one to an other.