fix resource id