fix a crash. Cause by stack_end_ is -1.