Fix bug with hidden status for children links

From #3845.