Fixed update_locations solution with s3 integration