The media is largely responsible for anti-Muslim feelings. In every murder where a Muslim is involved the murder is blamed on Muslim terrorists. However in every case involving Muslims, Muslims have been attacked by the country now experiencing a "terrorist" attack. The US, Britain, France, Germany Spain, Canada all attacked Muslims either in Palestine or Afghanistan, before they were attacked  So Muslims are retaliating.

The answer is simple, namely stop attacking Muslims. Apologize for attacking Muslims.