fix error if not on root category