Quantization of anomalous two-dimensional models