Changes markedNode scope to local + comment typo.