fixed no resource id bug