fix a bug of Location