Context fixes for resources.

Context fixes for configurable root.