fix the ac-source bug