fix corner case of setting location / set