Fix value resource extraction.