Fix for successive AC coding