fix cm build