fixed bug with background beacon scanning