Fixed some problems on cms settings