fix infinite-loop bug

sorry for breaking your emacs