fix bugs in lib/nuri/util.rb and modules/machine/machine.rb