Avoid strange casper bug and popup in latest WP