fix backward buffer, no extra memory required.