Bug fix

Normalized x and y coordinates.