fix stackoverflow exception per #51