fix deprecated location