fixed the setbuffer hit inconsistency