[SOFTWARE] Fix the stack bug