category tree structure fix