Fix location type