fix a bug that if no helper specified, there will be no stdout; fix callback undefined