Fixed some bugs. (Missing cld)