Fixed issue with sub pages more than one level deep