force clearing the stack which fixes several -O3 bugs