Fixed JS tree error