Indoor localization: fixed bugs