messageactivity bug fix