accounts.rb: fix bug when account not found