crash fix - crash when some resource is being modified and an entity is selected