Fix bug where buffer not reset on get position query