Fix stack depth