fix cm and deploy