Fixed error in beacon model