Fixed NPE in CTM