Fixed reading values from documents