fix prevent logs