Fix incorrect reference to location