fix frontend navbar widget not rendering menus children when the depth was more than 2