fix cfg
fix decoder working for dimension