Fix undefined x,y bugs.