fixed issues to get context_cat, model from hierarchy