fixed resource id bug