Fix location object errors.