Fix stack area overlapping issue