fixes the problem adding new nodes using the API