fixed resName error crash

fixed resName error crash