fixed bugs with distance to building and displaying corrrect name of
building