fixes for category tree