Fix stack pointer issue. Close #219