Fix bug with accounts.length with web interface