Fixed retrieval of values from files