fix messagecontroller