Fixed messages model in angular.