Fix stack level error