Fixed bug in ctm loader