Fixed a crash on unregistering delegate happening too fast probably