fix usage of coordinates from atom