Fix location build error

Fix location build error