fixed bug from merge which prevented text messages from being sent via ajax