fix #200 Send message page not working or cause crashes