Fixed bug for coordinate.php