fixed gotoxyr bug