fix location publishing