fixed bug in normalizedCoordinates