pop the root node after readValue()