fix random and ctrl-C on ros