fix missing end at client.rb