fixes on broadcast activity and preference activity