fixes #48, category is inherited from parent if a new subpage is created.