Tonecloud error 'cannot read property length of undefined'