Fixed bug involving the reset button.

It was off by a line due to the way to getposition function works.