Fix stack level too deep