fixed bugs with location popup