AC: Fix undefined label bug