Good catch, I'll add some exception handling here.