make sure RetrieveNodes return allocated metadata map