fix bug in text_to_user callback
fix bug in text_to_user