fix Command registration