Fix undefined label issue