Fix broken coordinate handling.