fixed issue of showing previous locations