Fix reference to location_type variable

Change-Id: I424797e7c237466210eadf0f56bc760afb24ccd8