fixed the problem of not printing log actions