fixed bug for cms