fixed unitok output redirection problem