fix bug locationtype