fix bug where yReset was set instead of xReset