fix bugs with location icons sometimes not appearing correctly