Fixed updating resource in context root