fix hierarchical model