fixed cursor postion bug where it'd give the same coordinates in x and y