fix location upload