Set dev nodes to NULL to fix panic on export. Remove debug prints.