cmd: fix machine registiration