fixed x-y coordinate issue (hopefully)