bugfix for a codec that reversed lat and long