fix buildCCSPtr