Fixed activate and deactivate in cli