fix bug in ajax response for message results