Fix Hierachical clustering with less than 10 levels