fix mappings top ten to work with NULL parent