Fixed issue where you could still delete an object after deselecting it.