Fix command registering.