minor bug fix, distance to beacon