fix bugs on show the location