Fixed a bug which prevented navigation from working properly when there was more than one level