fix cmd slope claculations