Merlin is responsible for Mordred going to Morgana. If he hadn't run to Arthur to tell him that Mordred was helping Kara to escape it would have ended differently. After Kara killed the guard it was obvious that Mordred saw her differently. He would have done the right thing after seeing that she was in fact evil. Badly written.