fixed node id incorrectly assigning id's