fix get resource example