use a global location
the loop should terminate.
fix the compile error under linux amd64