fixing issue with lat lon indicies