avoid StackOverflowError

Signed-off-by: Emilien Kenler <hello@emilienkenler.com>