Fix command registration.