fix an issue in cruise.rb