Fix getCategories depth arg has no effect