Change cmd.uid to cmd.id.