Store missing resource id
Modify example code to find defaulting bug
Fix defaulting bug