fixed beacon sending so it only sends once