fixed bag in adding messages instead updating