Fixed log redirection.