Fix creation of NodeEvent object