clone the configuration before retrieving the top element