Fixed some deletion issues.