crash fixed when resource gets selected in the asset browser