fix cms bug