Fixed bug when -c/self.cms is None