Fix retrieval of undefined values.