Fix edit issue where latitude was used as longitude