fix the timing of increment of pos