Some modification about delete instance