replace NBWS with ' '. also fix 'parent' index typo.