fixing resource id