Keep compatibility with transformers 0.3.