fixed compose function on message