There was also a spree of migrants attacks in Germany, just before the election, which greatly swung public opionion to the AfD.