fix failure messages deprecation