fix core dump problem : peekTask, for(;; pop)