fix for coordinates reading