fixes map error where coordinates overwritten