fixed a problem finding the main entry if no child locations exist