Fixed namespace issue for background agent