bug fixed: emacs hungs when empty data is given.