Fix location setting