Fix client-side stack overflow on invalid spirit. Close #153