fix a location bug